package com.nf.teamwork.mall.service.impl;

import com.nf.teamwork.mall.dao.UserRoleRelevanceDao;
import com.nf.teamwork.mall.entity.UserRoleRelevance;
import com.nf.teamwork.mall.service.UserRoleRelevanceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: LJP
 * @Classname UserRoleRelevanceServiceImpl
 * @Date: 2020-02-27 19:16
 * @Description: 用户角色关联表service层
 */
@Service

public class UserRoleRelevanceServiceImpl implements UserRoleRelevanceService {
    @Autowired
    private UserRoleRelevanceDao userRoleRelevanceDao;
    @Override
    public List<UserRoleRelevance> findAll() {
        return userRoleRelevanceDao.findAll();
    }

    @Override
    public boolean add(UserRoleRelevance userRoleRelevance) {
        return userRoleRelevanceDao.insert(userRoleRelevance) > 0;
    }

}
